import http from '@/tool/http'
export const login = (obj) => http.post('login', obj)
export const menus = () => http.get('menus')
export const users = (obj) => http.get('users', { params: obj })
export const add = (obj) => http.post('users', obj)
export const del = (id) => http.delete(`users/${id}`)
export const inquire = (id) => http.get(`users/${id}`)
export const edit = (id, obj) => http.put(`users/${id}`, obj)
export const cut = (uId, type) => http.put(`users/${uId}/state/${type}`)
//分配用户角色
export const assign = (id, rid) => http.delete(`users/${id}`, rid)


